package com.spring.framework.beans;

/**
 * @author ππ
 * @date 2020-11-16 18:07
 * @desc 声明Bean的包装类
 */

public class MyBeanWrapper {
    /**源生对象*/
    private Object wrapperInstance;
    /**源生对象对应的类*/
    private Class<?> wrapperClass;

    public MyBeanWrapper(Object wrapperInstance) {
        this.wrapperInstance = wrapperInstance;
        this.wrapperClass = wrapperInstance.getClass();
    }

    public Object getWrapperInstance() {
        return wrapperInstance;
    }

    public Class<?> getWrapperClass() {
        return wrapperClass;
    }
}
